<?php
require_once ('includes/header.php');
require_once "includes/db_connect.php";
$countries = getCountry();
//pr($countries);
?>
          <div class="hero-unit">
            <h4>Register User</h4>
          </div>
          <div class="row-fluid">
            <div class="span9">

<!--- PLEASE INCLUDE PAGES BELOW--->
<form name="register" id="registerId" class="form-horizontal" action="save_user.php"
enctype="multipart/form-data" method="post">
	<div class="control-group">
		<label class="control-label">Name</label>
		<div class="controls">
			<input name="name" type="text" value="Rasmus Lerdorf"
			placeholder="My name is" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Password</label>
		<div class="controls">
			<input type="password" id="passwordId" name="password"
			placeholder="Password" value="1q1q1q1q">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Confirm Password</label>
		<div class="controls">
			<input type="password" name="conPassword" value="1q1q1q1q"
			placeholder="Confirm Password">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Date Of Birth</label>
		<div class="controls">
			<input placeholder="YYYY-MM-DD" name="dob" type="date" value="1999-12-12" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Email</label>
		<div class="controls">
			<input placeholder="example@gmail.com" value="zeev@andi.com"
			name="email" type="email" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Gender</label>
		<div class="controls">
			<label class="radio inline">
				<input type="radio"
				name="gender" value="0" />
				Male</label><label class="radio inline">
				<input
				type="radio" name="gender" value="1" checked />
				FeMale</label>
			<label for="gender" class="error"></label>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Address</label>
		<div class="controls">
			<textarea name="address" rows="4" cols="20">H-231 Sector 22 Noida</textarea>
</div>	</div>
	<div class="control-group">
		<label class="control-label">Country</label>
		<div class="controls">
			<select name="country_id">
				<option value="">-Select-</option>
	<?php while($ans = mysql_fetch_assoc($countries)) {?>
	     <option value="<?=$ans['id']?>"><?=$ans['name']?></option>
	<?php }?>  
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Languages Known</label>
		<div class="controls">
			<select name="lang[]" multiple>
				<option value="c">C</option>
				<option selected value="cpp">C++</option>
				<option value="php">PHP</option>
				<option selected value="dotnet">.NET</option>
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Hobbbies</label>
		<div class="controls">
			<label class="checkbox inline">
				<input
				type="checkbox" checked name="hobbies[]" value="cricket" />
				Cricket</label><label
			class="checkbox inline">
				<input type="checkbox" name="hobbies[]"
				value="football" />
				Football</label><label class="checkbox inline">
				<input
				type="checkbox" checked name="hobbies[]" value="hockey" />
				Hockey</label><label
			class="checkbox inline">
				<input type="checkbox" name="hobbies[]"
				value="others" />
				Others</label>
			<label for="hobbies[]" class="error"></label>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">Avatar</label>
		<div class="controls">
			<input name="avatar" type="file" />
		</div>
	</div>
	<div class="control-group">
		<div class="controls">
			<input type="submit" class="btn btn-success btn-large" value="I am done!!">
		</div>
	</div>
</form>
<!-------------------------------->
<?php
require_once ('includes/footer.php');
?>